﻿using GrainManage.Entities.Status;
using GrainManage.Server.Business;
using System.Web.Mvc;

namespace GrainManage.Server.Controllers
{
    public class StatusController : BaseController
    {
        private readonly StatusBusiness business = new StatusBusiness();

        //************************************************POST************************************************
        [HttpPost]
        public ActionResult GetMessage(InputGetMessage input)
        {
            var result = business.GetMessage(input);
            return NewtonsoftJson(result);
        }

        [HttpPost]
        public ActionResult Search(InputSearch input)
        {
            var result = business.Search(input);
            return NewtonsoftJson(result);
        }
    }
}
